package com.will.txj.aj.server.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: wen-yi;
 * @date: 2021/12/5 11:31;
 * @Description: 页面跳转
 */
@Controller
@Api(tags = "页面跳转控制层")
@RequestMapping("pages")
public class PageJumpController {

    @ApiOperation("登录界面")
    @GetMapping("login")
    public String toLoginPage(){
        return "login";
    }

    @ApiOperation("授权界面")
    @GetMapping("authorize")
    public String toAuthorizePage() {
        return "authorize";
    }

    @ApiOperation("首页")
    @GetMapping("index")
    public String toIndexPage() {
        return "index";
    }
}
